import { SPI, ViewType, FormFieldWidget, ModelFieldType, BaseFieldWidget, ActionWidget, ModelDefaultActionName, Widget, getModel, IServerAction, executeConfirm, ServerActionWidget } from '@kunlun/mobile-dependencies';

@SPI.ClassFactory(
  ActionWidget.Token({model: 'demo.LabelManage', name: ModelDefaultActionName.create})
)
export class CreateWidget extends ServerActionWidget {
  @Widget.Method()
  public async clickAction() {
    console.log("clickAction")
    const confirmRs = await executeConfirm('自定义确认框')
    if (confirmRs) {
      super.clickAction()
    }
  }


}
